<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>do_action (Speedy::LinuxDeployment)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre><span class="ruby-comment cmt"># File lib/speedy/linux_deployment.rb, line 15</span>
    <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">do_action</span>(<span class="ruby-identifier">action</span>)
      <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">action</span>
      <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'deploy'</span>
        <span class="ruby-identifier">deploy</span>(<span class="ruby-constant">ARGV</span>[<span class="ruby-value">1</span>])
      <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'config-passenger'</span>
        <span class="ruby-identifier">config_passenger</span>
      <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'-h'</span>
        <span class="ruby-identifier">display_help</span>
      <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'--help'</span>
        <span class="ruby-identifier">display_help</span>
      <span class="ruby-keyword kw">else</span>
        <span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;Not a valid command. Please type 'speedy -h' to view all avaliable commands.&quot;</span>
      <span class="ruby-keyword kw">end</span>
    <span class="ruby-keyword kw">end</span></pre>
</body>
</html>